<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {if isset($info_id) && $info_id}
    <input type="hidden" name="row[info_id]" value="{$info_id}">
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Educational_back')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-educational_back" class="form-control " rows="5" name="row[educational_back]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Work_experience')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-work_experience" class="form-control " rows="5" name="row[work_experience]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certificate_reward')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-certificate_reward" class="form-control " rows="5" name="row[certificate_reward]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Self_assessment')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-self_assessment" class="form-control " rows="5" name="row[self_assessment]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Work_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-work_time" class="form-control" name="row[work_time]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Club_one')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-club_one_id" data-rule="required" data-source="club/index" class="form-control selectpage" name="row[club_one_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Club_two')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-club_two_id" data-rule="required" data-source="club_dtl_select/index" class="form-control selectpage" name="row[club_two_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_premium')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_premium]', ['0'=>__('否'), '1'=>__('是')], 0)}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tag_me')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tag_me"type="text" class="form-control" data-role='tagsinput' value="" data-tagsinput-options='{"maxTags":4, "trimValue":true}' />
            <small class="help-block" style="color: #999; font-size: 12px;margin-top: 0px;margin-bottom: -5px">输入标签按回车可分隔一个标签</small>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hourly_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hourly_rate" class="form-control" step="0.1" name="row[hourly_rate]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-course_duration" class="form-control" step="1" name="row[course_duration]" type="number">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-score" class="form-control" step="0.1" name="row[score]" type="number">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('People')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-people" class="form-control" step="1" name="row[people]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_num" class="form-control" step="1" name="row[order_num]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-imgs" class="control-label col-xs-12 col-sm-2">{:__('Imgs')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-imgs" data-rule="" class="form-control" size="50" name="row[imgs]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-imgs" class="btn btn-danger faupload" data-input-id="c-imgs" data-mimetype="image/*" data-multiple="true" data-preview-id="p-imgs"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-imgs" class="btn btn-primary fachoose" data-input-id="c-imgs" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-imgs"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-teacher_certification" class="control-label col-xs-12 col-sm-2">{:__('Teacher_certification')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-teacher_certification" data-rule="" class="form-control" size="50" name="row[teacher_certification]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-teacher_certification" class="btn btn-danger faupload" data-input-id="c-teacher_certification" data-mimetype="image/*" data-multiple="true" data-preview-id="p-teacher_certification"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-teacher_certification" class="btn btn-primary fachoose" data-input-id="c-teacher_certification" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-teacher_certification"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-diploma" class="control-label col-xs-12 col-sm-2">{:__('Diploma')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-diploma" data-rule="" class="form-control" size="50" name="row[diploma]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-diploma" class="btn btn-danger faupload" data-input-id="c-diploma" data-mimetype="image/*" data-multiple="true" data-preview-id="p-diploma"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-diploma" class="btn btn-primary fachoose" data-input-id="c-diploma" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-diploma"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-occupational_qualifications" class="control-label col-xs-12 col-sm-2">{:__('Occupational_qualifications')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-occupational_qualifications" data-rule="" class="form-control" size="50" name="row[occupational_qualifications]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-occupational_qualifications" class="btn btn-danger faupload" data-input-id="c-occupational_qualifications" data-mimetype="image/*" data-multiple="true" data-preview-id="p-occupational_qualifications"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-occupational_qualifications" class="btn btn-primary fachoose" data-input-id="c-occupational_qualifications" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-occupational_qualifications"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-professional_skill" class="control-label col-xs-12 col-sm-2">{:__('Professional_skill')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-professional_skill" data-rule="" class="form-control" size="50" name="row[professional_skill]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-professional_skill" class="btn btn-danger faupload" data-input-id="c-professional_skill" data-mimetype="image/*" data-multiple="true" data-preview-id="p-professional_skill"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-professional_skill" class="btn btn-primary fachoose" data-input-id="c-professional_skill" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-professional_skill"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_outline')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-course_outline" class="form-control " rows="5" name="row[course_outline]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Teaching_objectives')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-teaching_objectives" class="form-control " rows="5" name="row[teaching_objectives]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jxjh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-jxjh" class="form-control " rows="5" name="row[jxjh]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[addtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Detail_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[detail_status]', ['1'=>__('显示'), '2'=>__('不显示')], 1)}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
